package org.example.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author shenguangyang
 */
@Component
@FeignClient(value = "order-server") // 指定调用哪个微服务
public interface OrderRemoteService {

    @GetMapping("/order/findOrderByUserId/{id}")
    String findOrderByUserId(@PathVariable(value = "id") String  userId);
}

